package com.seal.tsms.exam.entity;

import com.seal.tsms.base.entity.IdEntity;

import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;

/**
 * Created by 武亚军lenovo on 2016/6/3.
 */
@Entity
@Table(name = "tb_chapter")
public class Chapter extends IdEntity{
    private String name;
    private Course course;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    @ManyToOne
    @JoinColumn(name = "course_id")
    public Course getCourse() {
        return course;
    }
    public void setCourse(Course course) {
        this.course = course;
    }

}
